$(function(){
	$("#add").click(function(){
		var $buttons = $("input");
				$buttons.each(function(i){
					if ($($buttons[i]).val()=='') {
						alert("请填写完整的用户信息!!!")
						return false;
					}
				});
	});

	$("[name = 'check']").click(function () {
		var bb= "";
		var string="";
		var a = $("[name = 'check']");
		for (var i = 0; i <a.length ; i++) {
			if (a[i].checked){
				string = a[i].value;
				bb=bb+","+string;
			}
		}
		$("[name = 's']").val(bb);
	});

});